package api

import (
	"github.com/gin-gonic/gin"
	"github.com/google/wire"
)

var ProviderSet = wire.NewSet(ProviderApi)

type UserApi struct {
	us UserService
}

type UserService interface {
	CreateUser(ctx *gin.Context, r *CreateUserReq) (*UserRes, error)
	GetUser(ctx *gin.Context, r *GetUserReq) (*UserRes, error)
	UpdateUser(ctx *gin.Context, r *UpdateUserReq) (*UserRes, error)
	DeleteUser(ctx *gin.Context, r *DeleteUserReq) (*UserRes, error)
}

//func ProviderApi(s *service.MyappService) *UserApi {
//	return &UserApi{s}
//}


func ProviderApi(us UserService) *UserApi {
	return &UserApi{us}
}



